﻿using System;
using fastCSharp;

namespace diantou.web.ajax
{
    /// <summary>
    /// 私信操作
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class message : userHandle<message>
    {
        /// <summary>
        /// 发送私信
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Send(diantou.dataAccess.message value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            value.UserId = currentUser.Id;
            diantou.dataAccess.tcpCall.message.send(value, onReturn);
        }
    }
}
